<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${productChannel.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">渠道名称：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="channelname" name="channelname"
                                       th:value="${productChannel.channelname}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">渠道类型：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="channeltype" name="channeltype"
                                       th:value="${productChannel.channeltype}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">渠道描述：</label>
                            <div class="col-sm-8">
                                <input maxlength="30" id="channeldes" name="channeldes"
                                       th:value="${productChannel.channeldes}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <!--  <input id="channelstatehidden" name="channelstatehidden"
                                 th:value="${productChannel.channelstate}"
                                 type="hidden">-->
                        <div class="form-group">
                            <label class="col-sm-3 control-label">渠道状态：</label>

                            <div class="col-sm-8">
                                <select id="channelstate" th:field="${productChannel.channelstate}"
                                        th:value="${productChannel.channelstate}" name="channelstate"
                                        class="form-control">
                                    <option value="1" th:selected="${productChannel.channelstate=='1'}">正常</option>
                                    <option value="0" th:selected="${productChannel.channelstate=='0'}">冻结</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/appjs/market/productChannel/edit.js">
</script>
<script type="text/javascript" th:inline="javascript">
    $(function () {
        /* var channelstatehidden = $('#channelstatehidden').val();
         $('#channelstate').val(channelstatehidden);*/
    })

</script>
</body>
</html>
